//
//  BQSportMainController.m
//  BQXing
//
//  Created by huangbq on 2017/2/8.
//  Copyright © 2017年 huangbq. All rights reserved.
//

#import "BQSportMainController.h"
#import "BQSportSportingController.h"
#import "BQSportingTracking.h"

@interface BQSportMainController ()

@end

@implementation BQSportMainController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)startSport:(UIButton *)sender {
    
    // 获取运动类型
    BQSportingType type = sender.tag;
    
    // 实例化运动监控控制器
    BQSportSportingController *sportingVC = [BQSportSportingController new];
    
    // 将运动类型传递到监控控制器
    sportingVC.sportType = type;
    
    // 展示运动监控控制器
    [self presentViewController:sportingVC animated:YES completion:nil];
    
    
}


@end
